home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: prototype error
- Date: Fri, 15 Mar 96 15:28:11 GMT
- Organization: none
- Message-ID: <826903691snz@genesis.demon.co.uk>
- References: <4i8688$1gr@cloner4.netcom.com> <1996Mar15.084834.23743@ms.philips.nl>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <1996Mar15.084834.23743@ms.philips.nl>
- Pvestjen@ms.philips.nl "Patrick Vestjens" writes:
-
- >Sounds like you forgot to include the header file that has the
- >prototypes for sound, delay and nosound in it. Do you know in what
- >header file these are supposed to be? You can probably find out by using
- >the online help.
- >
- >I wonder though, did you just get the above warning or did you also get
- >some 'unresolved references' during the linking phase? The warning you
- >describe should not keep the compiler from generating an executable,
- >however the 'unresolved references' will.
-
- There's no reason to assume that the linker can't link in the required
- library functions - declarations aren't necessary for this to happen.
- For instance the following is a strictly conforming program that a conforming
- implemenation *must* compile and execute (even it it generates some warnings):
-
- int main(void)
-
- {
- puts("Hello, world");
- return 0;
- }
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-